<%! from peerscape.http import utils %>
// supplementary info
peerscape.contentInfo = {
    peerscape_version: '${utils.jsonEscapeStr(contentInfo['peerscape_version'])}',
    iid: '${utils.jsonEscapeStr(contentInfo['iid'])}',
    title: '${utils.jsonEscapeStr(contentInfo['title'])}',
    modified: '${utils.jsonEscapeStr(contentInfo['modified'])}',
    created: '${utils.jsonEscapeStr(contentInfo['created'])}',
    picture: '${utils.jsonEscapeStr(contentInfo['picture'])}',
    parent_profile: {
        iid: '${utils.jsonEscapeStr(contentInfo['parent']['iid'])}',
        type: '${utils.jsonEscapeStr(contentInfo['parent']['type'])}',
        name: '${utils.jsonEscapeStr(contentInfo['parent']['name'])}'
    },
    application: {
        iid: '${utils.jsonEscapeStr(contentInfo['app']['iid'])}',
        name: '${utils.jsonEscapeStr(contentInfo['app']['name'])}'
    },
    owner: {
        iid: '${utils.jsonEscapeStr(contentInfo['owner']['iid'])}',
        name: '${utils.jsonEscapeStr(contentInfo['owner']['name'])}'
    },
    viewer: {
        iid: '${utils.jsonEscapeStr(contentInfo['viewer']['iid'])}',
        name: '${utils.jsonEscapeStr(contentInfo['viewer']['name'])}',
        is_group_member: ${contentInfo['viewer']['group_member']},
        group_roles: ${contentInfo['viewer']['group_roles'] | n}
    }
};

